package cn.changeforyou.web.cloud.auth.util;

import javax.servlet.http.HttpServletRequest;

/**
 * restful风格工具
 */
public class RestfulUtil {
    /**
     * 是否包含自定义Restfull的请求头
     * @param request
     * @return
     */
    public static boolean hasRestfulHeader(HttpServletRequest request) {
        String restfull = request.getHeader("restful");
        if("true".equals(restfull)){
            return true;
        }
        return false;
    }
}
